.input-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid #D3D3D3;
  border-radius: 4px;
  height: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus-within {
  border-color: #6EE7B7;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.1);
}

.input-field__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 52px;
  flex-shrink: 0;
}

.input-field__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #333333;
  height: 100%;
  text-align: left;
  padding: 0 12px 0 4px;
}

.input-field__input::placeholder {
  color: #999999;
}

.input-field__input::selection {
  background-color: #90EE90;
  color: #333333;
}

.input-field__right-button {
  background: #F0F0F0;
  border: none;
  color: #666666;
  font-size: 12px;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.input-field__right-button:hover {
  background: #E0E0E0;
  color: #333333;
}

.input-field__right-button:active {
  background: #D0D0D0;
}

/* 发送验证码组合样式 */
.input-field-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.input-field-group .input-field {
  flex: 1;
  height: 32px;
  min-width: 0;
}

.input-field-group .input-field:focus-within {
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.1);
}

.input-field__send-code-button {
  background: transparent;
  border: 1px solid #D3D3D3;
  color: #666666;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 60px;
  max-width: 80px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  user-select: none;
}

.input-field__send-code-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333333;
  border-color: #ADB5BD;
}

.input-field__send-code-button:active {
  background: rgba(0, 0, 0, 0.1);
}

.input-field__send-code-button:focus {
  outline: 2px solid #2ECC71;
  outline-offset: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .input-field-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .input-field-group .input-field {
    height: 32px;
  }
  
  .input-field__send-code-button {
    width: 100%;
    height: 32px;
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .input-field {
    height: 32px;
  }
  
  .input-field__icon {
    width: 32px;
    height: 32px;
  }
  
  .input-field__right-button {
    font-size: 8px;
    padding: 6px 12px;
  }
  
  .input-field-group .input-field {
    height: 32px;
  }
  
  .input-field__send-code-button {
    height: 32px;
    font-size: 8px;
    width: 100%;
    min-width: auto;
    max-width: none;
  }
}
